import { Module } from '@nestjs/common';
import { WebCamsController } from './web-cams.controller';
import { WebCamsService } from './web-cams.service';
import { GroupsService } from './groups.service';
import { MongooseModule } from '@nestjs/mongoose'
import { Cam, CamSchema } from './schemas/cam.schema'
import { Group, GroupSchema } from './schemas/group.schema'

@Module({
	imports: [
		MongooseModule.forFeature([{ name: Cam.name, schema: CamSchema }]),
		MongooseModule.forFeature([{ name: Group.name, schema: GroupSchema }])
	],
	controllers: [WebCamsController],
	providers: [WebCamsService, GroupsService]
})
export class WebCamsModule { }